#ifndef Utility_h__
#define Utility_h__

#include "Common/d3dx10headers.h"
#include <assert.h>

#define SAFE_DELETE(_Pointer_)  \
	{                           \
		if(_Pointer_)           \
		{                       \
			delete _Pointer_;   \
			_Pointer_ = 0;      \
		}                       \
	}

#define SAFE_RELEASE(_Pointer_)     \
	{                               \
		if(_Pointer_)               \
		{                           \
			_Pointer_->Release();   \
			_Pointer_ = 0;          \
		}                           \
	}

#if defined(DEBUG) | defined(_DEBUG)
	#define DBG_ASSERT(x) assert(x)
#else
	#define DBG_ASSERT(x) 
#endif 




#endif // Utility_h__
